package com.lanxiao.cloud.modules.oauth.application.dto;

import com.lanxiao.cloud.common.core.dto.Dto;
import com.lanxiao.cloud.modules.oauth.infrastructure.enums.TypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author ：qiaoliang
 * @date ：2021-10-08
 */
@ApiModel("权限返回模型")
public class PermissionDto extends Dto<Long> {
  @ApiModelProperty(value = "名称")
  private final String title;
  @ApiModelProperty(value = "类型")
  private final TypeEnum type;

  public PermissionDto(Long id, String title,
      TypeEnum type) {
    super(id);
    this.title = title;
    this.type = type;
  }

  public String getTitle() {
    return title;
  }

  public TypeEnum getType() {
    return type;
  }

}
